<?php
class Student_Form_NewGPA extends Zend_Dojo_Form
 {

     protected $_name = 'student_course';

	public function __construct($options = null)
		{
		parent::__construct($options);
		Zend_Dojo::enableForm($this);
		$this->setName('NewCourse');

                $soptions = (array ("Fall" => "Fall",
		     "Spring" => "Spring",
		     "Summer" => "Summer",
		      ));
                $semester = new Zend_Dojo_Form_Element_ComboBox('semester');
                $semester->setLabel('Semester');
                $semester->addMultiOptions($soptions);
                $semester->setAutocomplete(true);


                $yoptions = (array ("1999" => "1999",
		     "2000" => "2000",
		     "2001" => "2001",
                    "2002" => "2002",
                    "2003" => "2003",
                    "2004" => "2004",
                    "2005" => "2005",
                    "2006" => "2006",
                    "2007" => "2007",
                    "2008" => "2008",
                    "2009" => "2009",
                    "2010" => "2010",
                    "2011" => "2011",


		      ));
                $year = new Zend_Dojo_Form_Element_ComboBox('year');
                $year->setLabel('Year');
                $year->addMultiOptions($yoptions);
                $year->setAutocomplete(true);


                $id = new Zend_Form_Element_Hidden('id');
                $frontController = Zend_Controller_Front::getInstance();
                $id->setValue($frontController->getRequest()->getParam('id'));



		$submit = new Zend_Dojo_Form_Element_SubmitButton('submit');

		$this->addElements(array($semester, $year,$id));
                $this->addElement($submit);
		//$this->setAction('register');
		$this->setMethod('POST');


                }
 }

?>
